Skip to content

Conversation

@adityagesh
Copy link
Collaborator

  1. Hibernation requires free disk space proportional to RAM of the machine. LISA currently does not support os disk size as a requirement.
  2. Azure does not support Hibernation for VM with memory larger than 256 GB

@adityagesh adityagesh requested a review from LiliDeng as a code owner November 21, 2025 06:37
@adityagesh adityagesh force-pushed the aditya/hibernation_precheck branch 3 times, most recently from 1709020 to ba9870a Compare November 21, 2025 10:31
@kanchansenlaskar
Copy link
Collaborator

LGTM

@adityagesh adityagesh force-pushed the aditya/hibernation_precheck branch 3 times, most recently from 6619dfd to da8f248 Compare November 24, 2025 04:21
@LiliDeng LiliDeng requested a review from Copilot November 24, 2025 07:41
Copilot finished reviewing on behalf of LiliDeng November 24, 2025 07:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds disk space validation for VM hibernation to prevent setup failures. The changes implement pre-flight checks for disk space requirements and improve error handling for space-related hibernation failures.

  • Adds a new function check_hibernation_disk_requirements() that validates available disk space based on VM RAM size
  • Adds error pattern detection for defragmentation space errors in the hibernation setup tool
  • Integrates the disk space check into the Power test suite's before_case hook to fail fast before attempting hibernation

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
lisa/tools/hibernation_setup.py Adds regex pattern and error handling for defragmentation space errors during hibernation setup
lisa/microsoft/testsuites/power/common.py Implements new disk space validation function that checks RAM size and available disk space against hibernation requirements
lisa/microsoft/testsuites/power/power.py Integrates disk space check into test suite setup by calling it in the before_case hook

@adityagesh adityagesh force-pushed the aditya/hibernation_precheck branch 3 times, most recently from 99d6976 to 28f349e Compare November 25, 2025 03:38
@LiliDeng LiliDeng requested a review from Copilot November 26, 2025 02:08
Copilot finished reviewing on behalf of LiliDeng November 26, 2025 02:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.


You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

1. Hibernation requires free disk space proportional to
RAM of the machine. LISA currently does not support
os disk size as a requirement.
2. Azure does not support Hibernation for VM with
memory larger than 256 GB
@adityagesh adityagesh force-pushed the aditya/hibernation_precheck branch from 28f349e to 7abbc51 Compare November 26, 2025 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants